//该文件专门用于创建整个应用的路由器
//引入VueRouter
import VueRouter from 'vue-router'

//引入组件
// import About from '../pages/About'
// import Home from '../pages/Home'
// import Message from '../pages/Message'
// import News from '../pages/News'
// import Detail from '../pages/Detail'
import Login from '../pages/Login'
import Register from '../pages/Register'
import List from '../pages/List'
import MyTime from '../pages/MyTime'
import Myechart from "../pages/Myechart"

//创建并暴露一个路由器
export default new VueRouter({
    routes:[
        {
            path:'*',
            redirect:'/'
        },
        {
            path:'/',
            component:Login
        },
        {
            path:'/register',
            component:Register
        },
        {
            path:'/list',
            component:List,
        },
        {
            path:'/myTime',
            component:MyTime
        },
        {
            path:'/Myechart',
            component:Myechart
        }
    ]
})